package com.service.admin.order.controller;

import com.service.admin.order.controller.rep.OrderProductLockComboRep;
import com.service.admin.order.controller.req.OrderProductLockComboReq;
import com.service.admin.order.service.OrderProductLockComboService;
import com.service.core.rest.BaseController;
import com.service.core.rest.response.CommonPageRep;
import com.service.core.rest.response.PageResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户存币业务订单 控制层
 *
 * @author 404notfound
 * @since 2021年05月12日18:09:54
 */
@RestController
@RequestMapping("/order-product-lock-combo")
@Api(value = "用户存币业务订单 API", tags = "用户存币业务订单 API", description = "用户存币业务订单 API")
public class OrderProductLockComboController extends BaseController {

    @Autowired
    private OrderProductLockComboService orderProductLockComboService;


    @ApiOperation(value = "所有用户存币业务订单", notes = "所有用户存币业务订单", httpMethod = "POST")
    @ApiResponses({@ApiResponse(code = 200, message = "SUCCESS")})
    @ApiImplicitParams({@ApiImplicitParam(paramType = "OrderProductLockComboReq", name = "orderProductLockComboReq", value = "", required = true, dataType = "OrderProductLockComboReq")})
    @RequestMapping(value = "/page", method = RequestMethod.POST)
    public PageResponse<OrderProductLockComboRep> page(@RequestBody OrderProductLockComboReq orderProductLockComboReq) {
        //查询所有用户存币业务订单
        CommonPageRep<OrderProductLockComboRep> req = orderProductLockComboService.page(orderProductLockComboReq);
        return successQueryPageResponse(req);
    }


}
